package com.yanqu.road.logic.bussiness.tradewar;

import com.yanqu.road.dao.impl.tradewar.UserCrossTradeWarTeamDaoImpl;
import com.yanqu.road.entity.tradewar.UserCrossTradeWarTeam;
import com.yanqu.road.entity.tradewar.UserTradeWarTeam;
import com.yanqu.road.logic.bussiness.DaoHelper;

public class TradeWarTeamBussiness {
    public static UserTradeWarTeam getUserTradeWarTeam(long userId) {
        return DaoHelper.getUserTradeWarTeamDaoImpl().getUserTradeWarTeam(userId);
    }

    public static boolean addUserTradeWarTeam(UserTradeWarTeam data){
        return DaoHelper.getUserTradeWarTeamDaoImpl().add(data);
    }

    public static boolean updateUserTradeWarTeam(UserTradeWarTeam data){
        return DaoHelper.getUserTradeWarTeamDaoImpl().update(data);
    }

    public static UserCrossTradeWarTeam getUserCrossTradeWarTeam(long userId) {
        return new UserCrossTradeWarTeamDaoImpl().getUserTradeWarTeam(userId);
    }

    public static boolean addUserCrossTradeWarTeam(UserCrossTradeWarTeam data){
        return new UserCrossTradeWarTeamDaoImpl().add(data);
    }

    public static boolean updateUserCrossTradeWarTeam(UserCrossTradeWarTeam data){
        return new UserCrossTradeWarTeamDaoImpl().update(data);
    }
}
